<template>
  <div id="userLayout">
    <a-layout style="min-height: 100vh">
      <a-layout-header class="header">
        <div class="title-bar">
          <img src="../assets/giao.png" alt="" class="logo" />
        </div>
      </a-layout-header>

      <a-layout-content class="content">
        <router-view />
      </a-layout-content>

      <a-layout-footer class="footer">
        <a href="https://www.baidu.com" target="_blank"
          >编程导航知识星球 by 程序员鱼皮</a
        >
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<script setup lang="ts">
import GlobalHeader from "@/layouts/GlobalHeader.vue";
</script>

<style scoped>
#userLayout {
  background: url("https://cdn2.zzzmh.cn/wallpaper/origin/45663c9f2ce54eb2ae8628efb0c43390.jpg?response-content-disposition=attachment&auth_key=1709222400-05fa38359aefbdb5af319a5eaa8502dafc0c22eb-0-18bc33517ba7e94cc425a5fa79d70b90");
}

#userLayout .header {
  //margin-bottom: 16px;
  display: flex;
  justify-content: center;
  //align-items: center;
}

#userLayout .content {
  margin-bottom: 16px;
  margin-left: 1em;
  margin-right: 10em;
  padding-top: 5em;
  display: flex;
  justify-content: center;
  //align-items: center;
}

#userLayout .footer {
  background: #efefef;
  padding: 16px;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}

#userLayout {
  box-shadow: #666 2px 2px 10px;
}

.title-bar {
  width: 200px;
  border: 1px solid #000;
}

#userLayout .title-bar img {
  width: 100%;
  height: 100%;
  display: flex;
}

#userLayout .login {
  text-align: center;
}
</style>
